package com.xyh.student.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.xyh.student.dao.QuestionTypeDao;
import com.xyh.student.entity.QuestionType;
import com.xyh.student.entity.ResponseData;
import com.xyh.student.service.QuestionTypeService;

public class QuestionTypeServiceImpl implements QuestionTypeService {

    @Autowired
    private QuestionTypeDao questionTypeDao;

    @Override
    public ResponseData findAllType() {
        try {
            List<QuestionType> questionTypes = questionTypeDao.findAllType();
            return new ResponseData("0", "请求成功",questionTypes);
        } catch (Exception e) {
            return new ResponseData("888", "请求失败");
        }
    }
    
}
